import { applyMiddleware, createStore } from "redux";
import reducer from "./reducer";
import createSagaMiddleware from 'redux-saga'
import watchSaga from "./saga";

const SagaMiddleware = createSagaMiddleware();
const store = createStore(reducer, applyMiddleware(SagaMiddleware))

SagaMiddleware.run(watchSaga)
export default store;